<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
        <!-- 引入Vue -->
	<script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        
        <ul>
            <li v-for="(val,key,index) in json">val ={{val}}, key={{key}},index={{index}}</li>
        </ul>
    </div>

    <script type="text/javascript">
            var m={
                array: ['Beijing', 'Jinan', 'Shanghai', 'Hangzhou', 'Sulawesi'],
                json:{
                    firstCity:'BeiJing',
                    secondCity:'Jinan',
                    thirdCity:'Shanghai',
                    fourthCity:'Hangzhou',
                    fivthCity:'Sulawesi',
                }
            };

            var vm = new Vue({
                el:'#app',
                data:m,
                methods:{

                }
            });
    </script>
</body>
</html>